<?php

class ActivityWidget extends CWidget {

    public function init() {
        $data = UserLogs::model()->findAll("user_id =".Yii::app()->user->id);
        $this->render('activity',array('data'=>$data));
    }

}

?>
